
layui.define(['layer', 'form', 'upload'], function(exports) {
    var layer = layui.layer;
    var form = layui.form();

    layui.upload({
        url: ctx + '/workflow/deploy',
        type: 'file',
        ext: 'zip',
        success: function (res) {
            console.log(res); //上传成功返回值，必须为json格式
            if (res.code == 200) {
                layer.msg("部署成功！");
            } else {
                layer.msg("部署失败！");
            }
        }
    });

    exports('index', {}); //注意，这里是模块输出的核心，模块名必须和use时的模块名一致
});